{include file="public/header"}
<!-- 表单 -->
<style>
    .layui-form-label {
        width: 100px;
    }

    .layui-input-block {
        margin-left: 130px;
    }

    .layui-form-item {
        margin-right: 30%;
    }

    .layui-upload-img {
        width: 100px;
        height: 100px;
        line-height: 100px;
        text-align: center;
        border: 1px solid #ccc;
    }

    .layui-upload-img img {
        max-width: 100%;
        max-height: 100%;
        margin: auto auto;
    }
</style>
</head>

<body>
    <div class="cBody">
        <form id="addForm" class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">新密码</label>
                <div class="layui-input-inline shortInput">
                    <input type="password" name="password" required lay-verify="required" autocomplete="off"
                        class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">确认新密码</label>
                <div class="layui-input-inline shortInput">
                    <input type="password" name="password2" required lay-verify="required" autocomplete="off"
                        class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="submitBut">确认修改</button>
                </div>
            </div>
        </form>

        <script>
            layui.use('form', function () {
                var form = layui.form;
                //监听提交
                form.on('submit(submitBut)', function (data) {
                    // layer.msg(JSON.stringify(data.field));
                    ajax_submit(data.field, '');
                    return false;
                });
            });
        </script>
    </div>
</body>
{include file="public/footer"}